﻿<%@ Control Language="C#" ClassName="AttachmentFields" %>

<asp:FormView ID="FormView1" runat="server">
	<ItemTemplate>
		<table border="0" cellpadding="3" cellspacing="1">
			<tr>
        <td class="literal"><asp:Label ID="lbldataAttachmentId" runat="server" Text="Attachment Id:" AssociatedControlID="dataAttachmentId" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataAttachmentId" Text='<%# Bind("AttachmentId") %>'></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataAttachmentId" runat="server" Display="Dynamic" ControlToValidate="dataAttachmentId" ErrorMessage="Required"></asp:RequiredFieldValidator><asp:RangeValidator ID="RangeVal_dataAttachmentId" runat="server" Display="Dynamic" ControlToValidate="dataAttachmentId" ErrorMessage="Invalid value" MaximumValue="2147483647" MinimumValue="-2147483648" Type="Integer"></asp:RangeValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataAfiCode" runat="server" Text="Afi Code:" AssociatedControlID="dataAfiCode" /></td>
        <td>
					<data:EntityDropDownList runat="server" ID="dataAfiCode" DataSourceID="AfiCodeAfiDataSource" DataTextField="ClientName" DataValueField="AfiCode" SelectedValue='<%# Bind("AfiCode") %>' AppendNullItem="true" Required="false" NullItemText="< Please Choose ...>" />
					<data:AfiDataSource ID="AfiCodeAfiDataSource" runat="server" SelectMethod="GetAll"  />
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataAttachment" runat="server" Text="Attachment:" AssociatedControlID="dataAttachment" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataAttachment" Text='<%# Bind("Attachment") %>' MaxLength="250"></asp:TextBox>
				</td>
			</tr>
			
		</table>

	</ItemTemplate>
</asp:FormView>


